package com.cy.store.service;

import com.cy.store.entity._Address;

import java.util.List;

//地址接口
public interface IAddressService {
    //新增地址
    void addAddress(Integer uid, String username, _Address address);

    //查询某用户的收货地址列表数据
    List<_Address> getByUid(Integer uid);

    //设置默认收货地址
    void setDefault(Integer aid, Integer uid, String username);

    //删除收货地址
    void delete(Integer aid, Integer uid, String username);

    //通过aid，获取收获信息详情
    _Address getByAid(Integer aid, Integer uid);
}
